package com.neusoft.restaurant.common.exception;

/**
 * @author: zhongda
 * @createTime: 2023/11/24 15:48
 * @email: fromzhongda@163.com
 * @description:
 */
public class BizException extends RuntimeException{

    private int code = 500;
    private String msg;

    public BizException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BizException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
